package com.kafka.producer;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

/**
 * Author : 尤毅鹤
 * Date: 2021/05/20 15:39
 * Description: <描述>
 */
@RestController
public class ProducerController {

    @Autowired
    private SendService sendService;

    @GetMapping("/send/{msg}")
    public void send(@PathVariable("msg") String msg){
        sendService.sendMsg(msg);
    }
}